package com.example.photograph.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.example.photograph.common.annotation.Excel;
import com.example.photograph.common.core.domain.BaseEntity;

/**
 * 专业管理对象 sys_major
 * 
 * @author ruoyi
 * @date 2021-05-01
 */
public class SysMajor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 专业id */
    private Long id;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String majorName;

    /** 专业权重 */
    @Excel(name = "专业权重")
    private Long majorWeight;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    private Long schoolId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMajorName(String majorName) 
    {
        this.majorName = majorName;
    }

    public String getMajorName() 
    {
        return majorName;
    }
    public void setMajorWeight(Long majorWeight) 
    {
        this.majorWeight = majorWeight;
    }

    public Long getMajorWeight() 
    {
        return majorWeight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("majorName", getMajorName())
            .append("majorWeight", getMajorWeight())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
